package com.tecode.service;

import com.tecode.bean.Admin;

import java.util.List;

/**
 * Created by Administrator on 2019/4/2.
 */
public interface AdminService {
    Admin adminLogin(String adminname);

    List<Admin> getAdminAll();

    Integer adminadd(String adminName, String password, int adminRole);

    Admin adminSerch(int adminid);

    Integer adminUpdate(String adminName, String password, int adminRole, int adminid);

    List<Admin> serchAll(String serch);

    void freeze(int id);


    void freeze2(int id);

    void deletAll(Integer[] list);

    Integer updatePermission(int adminid, int adminRole, String adminName);
}
